package com.haogu.service;

import com.haogu.entity.Employee;
import com.haogu.entity.User;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;
import java.util.Map;

public interface EmployeeService {
    /**
     * 去添加员工页面
     */
    void toAddEmployee(Model model);

    /**
     * 添加员工
     */
    Map addEmployee(Employee employee, User user);
    /**
     * 分页展示员工数据
     */
    Map listEmployee(Integer page,Integer rows,String name);
    /**
     * 去修改页面之前
     */
    void toUpdateEmployee(Integer id,Model model);
    /**
     * 修改Employee
     */
    Map updateEmployee(Employee employee, User user);
    /**
     * 删除
     */
    Map deleteEmployee(String ids);
}
